<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
<script type="text/javascript">
	$(function(){
		$("#adminlogin").submit(function(){
			var b = true;
			if($("#name").val()==""){
				$("#cname").html("用户名不能为空");
				b= false;
			}
			if($("#pwd").val()==""){
				$("#cpwd").html("密码不能为空");
				b= false;
			}
			return b;
		})
	})
</script>
</head>
<body>
后台管理!请登陆
	<form action="AdminLogin" method="post" id="adminlogin">
		请输入账号:<input type="text" name="username" id="name" /><span id="cname"></span><br/>
		请输入密码:<input type="password" name="userpwd" id="pwd"  /><span id="cpwd"></span><br/>
		<input type="submit" value="登陆" />
		<input type="reset" value="重置" />
	</form>
</body>
</html>